"use strict"
//活动配置
const dbase = require('../dbase');
class config extends dbase.branch.mongodb {
    constructor(branch){
        super(branch,'exchangeOrder');
        this.ObjectID = ObjectID.bind(this);
    }

}

//活动配置
module.exports = function(branch){
    return new config(branch);
}

function ObjectID(id){
    if(id){
        return id;
    }
    else{
        return parseInt(Date.now() / 1000).toString(32);
    }
}